package com.dz.lm.service.comp.comp;

import com.dz.lm.common.dto.CompDTO;
import com.dz.lm.common.exception.ServiceException;
import com.dz.lm.domain.comp.Comp;

public interface CompService {
    int add(Comp comp) throws ServiceException;

    int updateCode(Comp comp) throws ServiceException;

    Comp get( int compId) throws ServiceException;

    CompDTO getByCode(String code )throws ServiceException;

    /**
     * 注册公司 返回code
     * @param comp
     * @param userName
     * @param password
     * @return
     * @throws Exception
     */
    String registerComp (Comp comp ,String userName ,String password) throws ServiceException;

}
